package org.ushio.speech_module.speech.audio;

import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

/**
 * @author 陈红
 * 用户录音实体类
 */
@Getter
@Setter
public class UserRecording {

    private Long recordingId;
    private Long userId;
    private Long sentenceId;
    private Long chapterId;
    private byte[] recordingBlob;
    private String recognitionResult;
    private Double score;
    private Double textMatchScore;
    private Double pitchScore;
    private Double intensityScore;
    private Double speechRateScore;
    private Timestamp createdAt;
    private Timestamp updatedAt;

    @Override
    public String toString() {
        return "UserRecording{" +
                "recordingId=" + recordingId +
                ", userId=" + userId +
                ", sentenceId=" + sentenceId +
                ", chapterId=" + chapterId +
                ", recordingBlob=" + (recordingBlob != null ? "byte[" + recordingBlob.length + "]" : "null") +
                ", recognitionResult='" + recognitionResult + '\'' +
                ", score=" + score +
                ", textMatchScore=" + textMatchScore +
                ", pitchScore=" + pitchScore +
                ", intensityScore=" + intensityScore +
                ", speechRateScore=" + speechRateScore +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}
